chcp 65001

set s1=hello world
set result=%s1:~6,3%

echo %result%

